import { createRouter, createWebHistory } from 'vue-router'
import IndexView from '@/views/IndexView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'indexView',
      redirect: '/rotation',
      component: IndexView,
      children:[
        {
          path: 'rotation',
          name: 'rotationView',
          component: () => import('@/views/RotationView.vue'),
        }
      ]
    },
    {
      path: '/:pathMatch(.*)*',
      name: 'notFoundView',
      component: () => import('@/views/NotFoundView.vue'),
    },
  ],
})

export default router
